package com.wgworkshop.pems.service;

import com.wgworkshop.pems.model.ClassHourModel;
import com.wgworkshop.pems.model.ClassHourViewRecord;

import java.util.List;

/**
 * 课时服务接口。
 * Created by wlc on 2017/7/9.
 */
public interface ClassHourService {
    ClassHourModel save(ClassHourModel classHourModel);

    List<ClassHourModel> saveAll(List<ClassHourModel> classHourModels);

    void delete(Long id);

    ClassHourModel update(Long id, ClassHourModel classHourModel);

    ClassHourModel update(ClassHourModel classHourModel);

    ClassHourModel findOne(Long id);

    boolean exists(Long id);

    void checkExists(Long id);

    List<ClassHourViewRecord> getClassHourView(String name);

    List<ClassHourModel> findByStudentId(Long id);
}
